package com.yanzhen.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 社团分类和介绍
 * </p>
 *
 * @author kappy
 * @since 2022-07-25
 */
@Data
@ExcelIgnoreUnannotated //没有注解的字段都不转换
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TypeInfo对象", description="社团分类和介绍")
public class TypeInfo implements Serializable {

    private static final long serialVersionUID = 1L;


    @ExcelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ExcelProperty("类型")
    private String name;

    @ExcelProperty("备注")
    private String remarks;


}
